package com.usst.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.usst.entity.Badge;
import com.usst.repository.BadgeRepository;
import com.usst.service.BadgeService;

@Service
public class BadgeServiceImpl implements BadgeService{
	
	@Autowired
	private BadgeRepository badgeRepo;

	@Override
	public Badge save(Badge badge) {
		return badgeRepo.save(badge);
	}

	@Override
	public Badge update(Badge badge){
		return badgeRepo.save(badge);
	}

	@Override
	@Transactional
	public void delete(Badge badge) {
		badgeRepo.delete(badge);
	}

}
